package com.hifar.test.collectdata.pojo.VO;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author zhuWeiWei
 * @description TODO
 * @date 2025/2/11 17:12
 */
@Data
@ApiModel("气候设备运行记录新增VO")
public class ClimateCollectDataAddVO {

    @NotBlank(message = "设备id不能为空!")
    private String equipId;

    @NotNull(message = "记录时间不能为空!")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date recordTime;

    @ApiModelProperty("湿度实测值")
    private BigDecimal humidityPv;
    @ApiModelProperty("温度实测值")
    private BigDecimal temperaturePv;
    @ApiModelProperty("气压实测值")
    private BigDecimal pressurePv;

    @ApiModelProperty("试验性质")
    private String testproperyPv;

}
